﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Core.Toolkit.AutoMapperExtend.DataDictionary.Enum
{
    [AttributeUsage(AttributeTargets.Enum)]
    public class EnumDicAttribute : Attribute
    {
        public string CategoryCode { get; private set; }
        public EnumDicType EnumDicType { get; private set; }

        public EnumDicAttribute(EnumDicType enumDicType = EnumDicType.TypeInt, string categoryCode = null)
        {
            CategoryCode = categoryCode;
            EnumDicType = enumDicType;
        }
    }

    public enum EnumDicType : int
    {
        TypeString,
        TypeInt
    }
}
